package com.nie.orderfood.enums;

public enum ResultEnum {

    PRODUCT_NOT_EXIST(10,"商品不存在"),
    PRODUCT_STOCK_ERROR(11,"商品库存错误"),
    ORDER_NOT_EXIST_ERROR(12,"订单表不存在异常"),
    ORDERDETAIL_NOT_EXIST_ERROR(13,"订单详情表不存在错误"),
    ORDER_STATUS_ERROR(14,"订单状态错误"),
    ORDER_EMPTY_ERROR(15,"订单表为空错误"),
    ORDER_UPDATE_ERROR(16,"订单更新失败错误"),
    ORDER_PAY_STATUS_ERROR(17,"订单支付状态错误"),
    PARAM_ERROR(18,"参数错误"),
    ORDER_OPENID_ERROR(19,"用户openid错误")
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
